import request from '@/config/axios'
export interface  formDataOv{
  id?: string,
  ruleName: string;
  resLevelName: string,
  earthquakeType: string,
  isTw: string,
  tempId: string,
  userGroups:any,
}
// 查询用户组数据
export const getGroup = (params) => {
  return request.get({ url: '/beidaUserGroup/list',params })
}

// 新增修改用户组数据
export const saveGroup = (data) => {
  return request.post({ url: '/beidaUserGroup/saveOrUpdate', data })
}

// 删除用户组数据
export const deleteGroup = (data) => {
  return request.post({ url: '/beidaUserGroup/delete', data})
}

// 获取用户组数据详情
export const getGroupDetail = (params) => {
  return request.get({ url: '/beidaUserGroup/getById',params })
}

// 查询用户
export const getUserList = (params) => {
  return request.get({ url: '/beidaUser/list',params})
}





// 启用发布规则
export const enablePublishRule = (params) => {
  return request.get({ url: '/beidaUserGroup/updateStatus', params})
}
